<div id="paging">

	<div align="right">
		{if $is_coach eq '0'}
		<!--label>Become a Coach :</label> <input type="radio" name="user_type" value="1" onclick="coach_game()" /-->
		<a class="button" href="coach_game_update.php?profile=Y"><span>Become a Coach</span></a>
		{/if}
		{if $is_partner eq '0'}
		<a class="button" href="training_partner_game_update.php?profile=Y">Become Training Partner</a>
		<!--label>Become a Training Partner :</label> <input type="radio" name="user_type" value="3" onclick="tp_game()"/-->
		{/if} 
	</div>
	<div class="content">
			
			{* Start loading Tabs *}
			{include file='user_tabs.tpl' active_tab='training partner'}
			{* End loading Tabs *}
			
			<div class="clear"></div>
			<div class="tabular-content"> 
				<div class="total-message">
					<a href="training_partner_game_update.php" class="button">Add Game</a>&nbsp;
					<strong>Total Games : {$Numcoachgame}</strong>&nbsp;&nbsp;
				</div> 
				<div class="clear"></div>                     
				<div>
					{if $Numcoachgame >0}
						{section name=gameRow loop=$TpgameArr}
							<div class="profile-list" {if $smarty.section.gameRow.index%2 neq 0}style="background-color:#f2f2f2;"{/if}>
								<div class="game-details" {if $smarty.section.gameRow.index%2 neq 0}style="background-color:#f2f2f2;"{/if} >
									<h4>{$TpgameArr[gameRow].game}</h4>
									<ul class="games-desc" style="padding-top:0px;">
										{if $TpgameArr[gameRow].is_ladder eq 'Y'}
											<li><span>Ladder :</span> {if $TpgameArr[gameRow].ladder neq ''}{$TpgameArr[gameRow].ladder}{else}N/A{/if}</li>
										{/if}
										{if $TpgameArr[gameRow].is_server eq 'Y'}
											<li><span>Server :</span> {if $TpgameArr[gameRow].server}{$TpgameArr[gameRow].server}{else}N/A{/if} </li>
										{/if}
										{if $TpgameArr[gameRow].is_region eq 'Y'}
											<li><span>Region :</span> {if $TpgameArr[gameRow].region}{$TpgameArr[gameRow].region}{else}N/A{/if} </li>
										{/if}
									</ul>
									<ul class="games-desc" style="padding-top:0px;">
										{if $TpgameArr[gameRow].is_race eq 'Y'}
											<li><span>Race :</span> {if $TpgameArr[gameRow].race neq ''}{$TpgameArr[gameRow].race}{else}N/A{/if}</li>
										{/if}
										{if $TpgameArr[gameRow].is_rating eq 'Y'}
											<li><span>Rating :</span> {if $TpgameArr[gameRow].rating}{$TpgameArr[gameRow].rating}{else}N/A{/if} </li>
										{else}
											<li>&nbsp;</li>
										{/if}
									</ul>
									<p class="clear"></p>
									<p style="padding-top:5px;">
										<b>Experience : </b>
											{if $TpgameArr[gameRow].experience neq ''}
												{$TpgameArr[gameRow].experience}
											{else}
												N/A
											{/if}
									</p>
									<p class="clear"></p>
									<div style="height:10px;"></div>
									<div class="clear"></div>
									<div style="width:100%; padding-left:150px;">
										<div class="view">
											<a class="button" href="#" onclick="ConfirmDelete('{$page_name}?action=del','{$TpgameArr[gameRow].user_game_id}','{$TpgameArr[gameRow].game}','Your selected game:: ')">
												Delete
											</a>
										</div>
										<div class="view" style="margin-right:5px;">
											<a class="button" href="training_partner_game_update.php?user_game_id={$TpgameArr[gameRow].user_game_id}">
												Edit
											</a>
										</div>
									</div>
								</div>
								<div class="clear"></div>
							</div>
						{/section}
					{else}
						<div class="profile-list">
							<div class="game-details"> No game found </div>
						</div>
					{/if}
					<div class="clear"></div>
				</div>
			</div>
	</div>
</div>     